<?php echo $this -> Html -> css('modify');?>
<?php echo $this -> Html -> script('modify');?>
<div class="imfTitle">
<span><a href="javascript:void(0)" id="modifyAll">修改信息</a></span>
<span><a href="javascript:void(0)" class="cancelAll">取消修改</a></span>
</div>
<div class="imfDiv">
	<div class="imfNeg">
		<span class="imfTitle">基本信息
		</span> 
		<span class="imfEdit"><a href="javascript:void(0)">编辑</a>
		</span>
	</div>
	<div class="imfShow">
	<table class="imfContent">
		<tr>
			<td class="td1">呢称</td>
			<td>:</td>
			<td><?php if(isset ($userinfos['Userinfo']['nickname'])){
							echo $userinfos['Userinfo']['nickname'];
						}
						else echo"匿名用户";
				?>
			</td>
		</tr>
		<tr>
			<td class="td1">性别</td>
			<td>:</td>
			<td><?php if(isset ($userinfos['Userinfo']['gender'])){
							if ($userinfos['Userinfo']['gender']==='0')
								echo"男";
								else echo "女";
						}
						else echo"你还没填性别呢！";
				?></td>
		</tr>
		<tr>
			<td class="td1">生日</td>
			<td>:</td>
			<td>
			<?php if(isset ($userinfos['Userinfo']['birthdayYear'])&&$userinfos['Userinfo']['birthdayYear']!="0"){
						echo $userinfos['Userinfo']['birthdayYear'];echo "年";
					}
					else echo"";
			?>
			<?php if(isset ($userinfos['Userinfo']['birthdayMon'])&&$userinfos['Userinfo']['birthdayMon']!="0"){
						echo $userinfos['Userinfo']['birthdayMon'];echo "月";
					}
					else echo"";
			?>
			<?php if(isset ($userinfos['Userinfo']['birthdayDay'])&&$userinfos['Userinfo']['birthdayDay']!="0"){
						echo $userinfos['Userinfo']['birthdayDay'];echo "日";
					}
					else echo"";
			?>
			</td>
		</tr>
		<tr>
			<td class="td1">所在城市</td>
			<td>:</td>
			<td>
			<?php if (isset ($userinfos['Userinfo']['city'])){
					echo $userinfos['Userinfo']['city'];
				}
				else echo"";
			?></td>
		</tr>
		<tr>
			<td class="td1">兴趣爱好</td>
			<td>:</td>
			<td>
			<?php if (isset ($userinfos['Userinfo']['hobby'])){
				echo $userinfos['Userinfo']['hobby'];
			}
			else echo"";
			?></td>
		</tr>
		<tr>
			<td class="td1">个人签名</td>
			<td>:</td>
			<td>
			<?php if(isset ($userinfos['Userinfo']['introduction'])){
					echo $userinfos['Userinfo']['introduction'];
				}
				else echo"";
			?>
			</td>
		</tr>
	</table>
	</div>
	<div class="imfModify">
	<form id='form1' action='Userinfos/edit' method = 'POST'>
		<table>
			<tr>
				<tr>
			<td class="td1">呢称</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][nickname]" value="<?php if(isset ($userinfos['Userinfo']['nickname'])) {echo $userinfos['Userinfo']['nickname']; } else echo'匿名用户';?>"/></td>
		</tr>
		<tr>
			<td class="td1">性别</td>
			<td>:</td>
			<td><input type="radio" name="data[Userinfo][gender]" value="0"  <?php if(isset ($userinfos['Userinfo']['gender'])){if ($userinfos['Userinfo']['gender']==='0')echo 'checked="true"';else echo '';}?> />男
			<input type="radio" name="data[Userinfo][gender]" value="1"  <?php if(isset ($userinfos['Userinfo']['gender'])){if ($userinfos['Userinfo']['gender']==='1')echo 'checked="true"';else echo '';}?>/>女</td>
		</tr>
		<tr>
			<td class="td1">生日</td>
			<td>:</td>
			<td>
				<select id="year" name="data[Userinfo][birthdayYear]">
					<option value=""><?php if(isset ($userinfos['Userinfo']['birthdayYear'])&&$userinfos['Userinfo']['birthdayYear']!='0'){echo $userinfos['Userinfo']['birthdayYear'];} else echo'';?></option>
				</select>年
				<select id="month" name="data[Userinfo][birthdayMon]">
					<option value=""><?php if(isset ($userinfos['Userinfo']['birthdayMon'])&&$userinfos['Userinfo']['birthdayMon']!='0'){echo $userinfos['Userinfo']['birthdayMon'];} else echo'';?></option>
				</select>月
				<select id="day" name="data[Userinfo][birthdayDay]">
					<option value=""><?php if(isset ($userinfos['Userinfo']['birthdayDay'])&&$userinfos['Userinfo']['birthdayDay']!='0'){echo $userinfos['Userinfo']['birthdayDay'];}else echo'';?></option>
				</select>日
			</td>
		</tr>
		<tr>
			<td class="td1">所在城市</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][city]" value="<?php if (isset ($userinfos['Userinfo']['city'])){echo $userinfos['Userinfo']['city'];}else echo'';?>"/></td>
		</tr>
		<tr>
			<td class="td1">兴趣爱好</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][hobby]" value="<?php if (isset ($userinfos['Userinfo']['hobby'])){echo $userinfos['Userinfo']['hobby'];}else echo'';?>"></td>
		</tr>
		<tr>
			<td class="td1">个人签名</td>
			<td>:</td>
			<td><textarea type="text" name = "data[Userinfo][introduction]" ><?php if(isset ($userinfos['Userinfo']['introduction'])){echo $userinfos['Userinfo']['introduction'];}else echo'';?></textarea></td>
			</tr>
		</table>
		<input type="submit" class="preserve" name="submit" value="保存修改"/>
		<input type="button" class="cancelImf" value="取消"/>
		</form>
	</div>
</div>
<div class="imfDiv">
	<div class="imfNeg">
		<span class="imfTitle">学校信息
		</span>
		<span class="imfEdit"><a href="javascript:void(0)">编辑</a>
		</span>
	</div>
	<div class="imfShow">
	<table class="imfContent">
		<tr>
			<td class="td1">大学</td>
			<td>:</td>
			<td>
			<?php if(isset ($userinfos['Userinfo']['university'])){
				echo $userinfos['Userinfo']['university'];
			}
			else echo"";
			?>
			</td>
		</tr>
		<tr>
			<td class="td1">高中</td>
			<td>:</td>
			<td>
			<?php if(isset ($userinfos['Userinfo']['seniorHighSchool'])){
				echo $userinfos['Userinfo']['seniorHighSchool'];
			}
			else echo"";
			?>
			</td>
		</tr>
		<tr>
			<td class="td1">中专技校</td>
			<td>:</td>
			<td>
			<?php if (isset ($userinfos['Userinfo']['technicalSecondarySchool'])){
				echo $userinfos['Userinfo']['technicalSecondarySchool'];
			}
			else echo"";
			?>
			</td>
		</tr>
		<tr>
			<td class="td1">初中</td>
			<td>:</td>
			<td>
			<?php if (isset ($userinfos['Userinfo']['juniorHighSchool'])){
				echo $userinfos['Userinfo']['juniorHighSchool'];
			}
			else echo"";
			?>
			</td>
		</tr>
		<tr>
			<td class="td1">小学</td>
			<td>:</td>
			<td>
			<?php if (isset ($userinfos['Userinfo']['primarySchool'])){
				echo $userinfos['Userinfo']['primarySchool'];
			}
			else echo"";
			?>
			</td>
		</tr>
	</table>
	</div>
	<div class="imfModify">
	<form action='Userinfos/edit' method = 'POST' id='form2'>
	<table class="imfContent">
		<tr>
			<td class="td1">大学</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][university]" value="<?php if(isset ($userinfos['Userinfo']['university'])){echo $userinfos['Userinfo']['university'];}else echo'';?>"></td>
		</tr>
		<tr>
			<td class="td1">高中</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][seniorHighSchool]" value="<?php if(isset ($userinfos['Userinfo']['seniorHighSchool'])){echo $userinfos['Userinfo']['seniorHighSchool'];}else echo'';?>"/></td>
		</tr>
		<tr>
			<td class="td1">中专技校</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][technicalSecondarySchool]" value="<?php if (isset ($userinfos['Userinfo']['technicalSecondarySchool'])){echo $userinfos['Userinfo']['technicalSecondarySchool'];}else echo'';?>"/></td>
		</tr>
		<tr>
			<td class="td1">初中</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][juniorHighSchool]" value="<?php if (isset ($userinfos['Userinfo']['juniorHighSchool'])){echo $userinfos['Userinfo']['juniorHighSchool'];}else echo'';?>"/></td>
		</tr>
		<tr>
			<td class="td1">小学</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][primarySchool]" value="<?php if (isset ($userinfos['Userinfo']['primarySchool'])){echo $userinfos['Userinfo']['primarySchool'];}else echo'';?>"/></td>
		</tr>
	</table>
		<input type="submit" class="preserve" name="submit" value="保存修改"/>
		<input type="button" class="cancelImf" value="取消"/>
		</form>
	</div>
</div>
<div class="imfDiv">
	<div class="imfNeg">
		<span class="imfTitle">联系方式
		</span>
		<span class="imfEdit"><a href="javascript:void(0)">编辑</a>
		</span>
	</div>
	<div class="imfShow">
	<table class="imfContent">
		<tr>
			<td class="td1">QQ</td>
			<td>:</td>
			<td>
			<?php if (isset ($userinfos['Userinfo']['qq'])&&$userinfos['Userinfo']['qq']!="0"){
				echo $userinfos['Userinfo']['qq'];
			}
			else echo"";
			?>
			</td>
		</tr>
		<tr>
			<td class="td1">MSN</td>
			<td>:</td>
			<td>
			<?php if(isset ($userinfos['Userinfo']['msn'])){
				echo $userinfos['Userinfo']['msn'];
			}
			else echo"";
			?>
			</td>
		</tr>
		<tr>
			<td class="td1">邮箱</td>
			<td>:</td>
			<td>
			<?php if(isset ($userinfos['Userinfo']['email'])){
				echo $userinfos['Userinfo']['email'];
			}
			else echo'';
			if(isset ($userinfos['Userinfo']['publicemail'])&&$userinfos['Userinfo']['publicemail']=='1')
				{echo "(邮箱已公开)";}
			else if(isset ($userinfos['Userinfo']['publicemail'])&&$userinfos['Userinfo']['publicemail']=='0')
					echo "(邮箱还没公开)";
				else echo'';
			?>
			</td>
		</tr>
		<tr>
			<td class="td1">手机号</td>
			<td>:</td>
			<td>
			<?php if(isset ($userinfos['Userinfo']['cellphone'])&&$userinfos['Userinfo']['cellphone']!="0"){
				echo $userinfos['Userinfo']['cellphone'];
			}
			else echo"";
			?>
			</td>
		</tr>
		<tr>
			<td class="td1">个人博客</td>
			<td>:</td>
			<td>
			<?php if(isset ($userinfos['Userinfo']['blog'])){
				echo $userinfos['Userinfo']['blog'];
			}
			else echo"";
			?>
			</td>
		</tr>
		<tr>
			<td class="td1">个人微博</td>
			<td>:</td>
			<td>
			<?php if(isset ($userinfos['Userinfo']['microBlog'])){
				echo $userinfos['Userinfo']['microBlog'];
			}
			else echo"";
			?>
			</td>
		</tr>
	</table>
	</div>
	<div class="imfModify">
	<form action='Userinfos/edit' method = 'POST' id='form3'>
	<table class="imfContent">
		<tr>
			<td class="td1">QQ</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][qq]" value="<?php if (isset ($userinfos['Userinfo']['qq'])&&$userinfos['Userinfo']['qq']!="0"){echo $userinfos['Userinfo']['qq'];}else echo'';?>"/></td>
		</tr>
		<tr>
			<td class="td1">MSN</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][msn]" value="<?php if(isset ($userinfos['Userinfo']['msn'])){echo $userinfos['Userinfo']['msn'];}else echo'';?>"/></td>
		</tr>
		<tr>
			<td class="td1">邮箱</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][email]" value="<?php if(isset ($userinfos['Userinfo']['email'])){echo $userinfos['Userinfo']['email'];}else echo'';?>"/></td>
		</tr>
		<tr>
			<td>是否公开邮箱</td>
			<td>:</td>
			<td><input type="radio" value="1" name="data[Userinfo][publicemail]" <?php if(isset ($userinfos['Userinfo']['publicemail'])&&$userinfos['Userinfo']['publicemail']=='1'){echo 'checked="true"';}else echo'';?>/>是
			<input type="radio" value="0" name="data[Userinfo][publicemail]" <?php if(isset ($userinfos['Userinfo']['publicemail'])&&$userinfos['Userinfo']['publicemail']=='0'){echo 'checked="true"';}else echo'';?>/>否</td>
		</tr>
		<tr>
			<td class="td1">手机号</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][cellphone]" value="<?php if(isset ($userinfos['Userinfo']['cellphone'])&&$userinfos['Userinfo']['cellphone']!="0"){echo $userinfos['Userinfo']['cellphone'];}else echo'';?>"/></td>
		</tr>
		<tr>
			<td class="td1">个人博客</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][blog]" value="<?php if(isset ($userinfos['Userinfo']['blog'])){echo $userinfos['Userinfo']['blog'];}else echo'';?>"/></td>
		</tr>
		<tr>
			<td class="td1">个人微博</td>
			<td>:</td>
			<td><input type="text" name = "data[Userinfo][microBlog]" value="<?php if(isset ($userinfos['Userinfo']['microBlog'])){echo $userinfos['Userinfo']['microBlog'];}else echo'';?>"/></td>
		</tr>
	</table>
		<input type="submit" class="preserve" name="submit" value="保存修改"/>
		<input type="button" class="cancelImf" value="取消"/>
		</form>
	</div>
</div>
<div id="preAll">
	<input type="submit" id="preserveAll" name="submit" value="保存所有修改"/>
	<input type="button" class="cancelAll" value="取消修改"/>
</div>
<script>
	$("#fixedItem").css("display","none");
	$("#wheader").html("&nbsp;&nbsp;我的个人资料");
	$("#wheader").css("display","block");
</script>
